package redis

import (
	"fmt"
	"github.com/go-redis/redis"
	"src/appconfig"
)

var Client *redis.Client

func ExampleNewClient() {
	Redis := appconfig.Data.Redis
	Client = redis.NewClient(&redis.Options{
		Addr:     Redis.Addr,
		Password: Redis.Password,
		DB:       Redis.DB,
	})

	fmt.Println("redis连接成功")

}
